package com.job.ZhangMeng.Homework0707.kszy;

public class TestTeacher0707 {
    public static void main(String[] args) {
        System.out.println(Teacher.num);

        {
            Teacher t1=new Teacher();
            System.out.println(t1.name);//老王
        }//局部代码块

        Teacher t2=new Teacher("老李");
        System.out.println(t2.name);//老李
    }

}
